package com.kuaimacode.kframework.mybatis.models.user;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 12786 on 2019/5/25.
 * @version 1.0
 */
@Data
public class MasterAccountResult extends UserDrawApply{


    @ApiModelProperty(value = "师傅姓名")
    @TableId(value = "master_name")
    private String masterName;

    @ApiModelProperty(value = "余额")
    @TableId(value = "extra_amount")
    private String extraAmount;

    @ApiModelProperty(value = "账号")
    @TableId(value = "master_account")
    private String masterAccount;

    @ApiModelProperty(value = "银行预留手机号")
    @TableId(value = "bank_card_phone_number")
    private String bankCardPhoneNumber;

    @ApiModelProperty(value = "银行卡号")
    @TableId(value = "bank_card_number")
    private String bankCardNumber;

    @ApiModelProperty(value = "交易后余额")
    @TableId("tran_amount")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "##0.00") //精度保留2位小数
    private BigDecimal tranAmount;

    @ApiModelProperty(value = "手续费")
    @TableId("brokerage")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "##0.00") //精度保留2位小数
    private BigDecimal brokerage;

    @ApiModelProperty(value = "实际金额")
    @TableId("reality_amount")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "##0.00") //精度保留2位小数
    private BigDecimal realityAmount;

    @ApiModelProperty(value = "创建时间")
    @TableId("create_dt")
    private Date createDt;

    @ApiModelProperty(value = "银行名称")
    @TableId("bank_name")
    private String bankName;

    @ApiModelProperty(value = "处理人")
    @TableId("process_name")
    private String processName;
}
